<template>
商品的界面
  {{product}}
</template>

<script setup>



import {useRouter,useRoute} from "vue-router";
import {onMounted} from "vue";

const route=useRoute()//获取路由信息
const product=JSON.parse(route.query.product)
onMounted(()=>{
  console.log(route.query.product)
})
</script>

<style scoped>

</style>